import axiosData from "@/api/axios";
import {get} from "@/api/axios";

export default {
  /**
   * @description: 获取供应商列表 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryPageList(params) {
    return axiosData.post("/v3/equipment-base/supplier/queryPageByCondition", params);
  },
  /**
   * @description: 获取供应商列表 *代表必填
   * @param {Object} entity {} *
   * @return {Array}
   */
  queryList(params) {
    return axiosData.post("/v3/equipment-base/supplier/queryByCondition", params);
  },

  /**
   * @description: 新增供应商
   * @param {Object} params *
   * @return {Object}
   */
  add(params) {
    return axiosData.post("/v3/equipment-base/supplier/add", params);
  },
  /**
   * @description: 编辑供应商
   * @param {Object} params *
   * @return {Object}
   */
  edit(params) {
    return axiosData.post("/v3/equipment-base/supplier/edit", params);
  },
  /**
   * @description: 批量删除供应商
   * @param {Object} sparePartIOCodeList *
   * @return {Object}
   */
  delList(params) {
    return axiosData.post("/v3/equipment-base/supplier/delListByNo", params);
  },
  /**
   * @description: 单个删除供应商
   * @param {String/Number} no *
   * @return {Object}
   */
  delOne(params) {
    return get(`/v3/equipment-base/supplier/delByNo`,params);
  }
};
